/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jl.tools.stkeditor.generate;

import com.jl.tools.stkeditor.exception.DataNotMatchCodingScheamException;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author LuHongjun
 */
public final class AddCodeSplite extends CodeDect{
  
//  private int len;
  private String splite;
  
  
  public AddCodeSplite(Code code,String splite){
    this.code = code;
    this.splite = splite;
  }

  @Override
  public List<String> getCode() throws DataNotMatchCodingScheamException {
    List<String> l = new ArrayList<String> ();
    for(String s : code.getCode()){
      l.add(s+splite);
    }
    return l;
  }

  @Override
  public int getLength() {
    return code.getLength();
  }
  
}
